<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:set var="sub_grant_code"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>

<div class="t_bar"><span class="color_red">*</span>项目投入资金预算（单位：万元）</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="budget_invest_details"
	cellspacing="1">
	<tr>
	    <th width="120px" align="left" >总投资</th>
		<td colspan="6"  style="background:#edf2f8;">
			<input id="invest_total" name="budget/invest_detail/total" label="总投资" type="text" disabled
					class="input_text gray"  style="text-align:right;width:100px;background:#e6e6e6;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/total" />" /> 
		</td>
	</tr>
	
	
	<tr>
		
		<td width="120px" align="center" rowspan="2">已完成投资</td>
		<td width="120px" align="center" rowspan="2">企业自筹</td>
		<td align="center" colspan="3">政府资金</td>
		<td width="120px" align="center" rowspan="2">银行贷款</td>
		<td width="120px" align="center" rowspan="2">其他</td>
	</tr>
	<tr>
		<td width="120px" align="center" >国家/省拨款</td>
		<td width="120px" align="center" >深圳市</td>
		<td width="120px" align="center" >深圳市下达单位</td>
	</tr>
	<tr>
		<td align="center">
			<input id="invest_finish_0" name="budget/invest_detail/finished/total" label="已完成投资" type="text" disabled
					class="input_text  maxlength:20"  style="text-align:right;width:100px;background:#e6e6e6;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/total" />" 
					onchange="countFundAuto('invest_finish_seft_','1,2,3,4,5','0')" /> 
		</td>
		<td align="center">
			<input id="invest_finish_1" name="budget/invest_detail/finished/seft" label="已完成的投资中的自筹资金" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/seft" />" 
					onchange="countFundAuto('invest_finish_','1,2,3,4,5','0');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_finish_2" name="budget/invest_detail/finished/gov_funding" label="已完成的投资中的国家/省拨款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/gov_funding" />" 
					onchange="countFundAuto('invest_finish_','1,2,3,4,5','0');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_finish_3" name="budget/invest_detail/finished/sz_funding" label="已完成的投资中的深圳市拨款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/sz_funding" />" 
					onchange="countFundAuto('invest_finish_','1,2,3,4,5','0');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">							
			<input name="budget/invest_detail/finished/xddw" label="下达单位" type="text"
					class="input_text  maxlength:20"  style="width:100px;" maxlength="50"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/xddw" />"  /> 
		</td>
			 
		<td align="center">
			<input id="invest_finish_4" name="budget/invest_detail/finished/bank_loans" label="已完成的投资中的银行贷款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/bank_loans" />" 
					onchange="countFundAuto('invest_finish_','1,2,3,4,5','0');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_finish_5" name="budget/invest_detail/finished/other_funding" label="已完成的投资中的其他资金" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/finished/other_funding" />" 
					onchange="countFundAuto('invest_finish_','1,2,3,4,5','0');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>	
			 
	</tr>

	<tr>
		<td width="120px" align="center" rowspan="2">计划新增投资额</td>
		<td width="120px" align="center" rowspan="2">企业自筹</td>
		<td align="center" colspan="3">政府资金</td>
		<td width="120px" align="center" rowspan="2">银行贷款</td>
		<td width="120px" align="center" rowspan="2">其他</td>
	</tr>
	<tr>
		<td width="120px" align="center" >国家/省拨款</td>
		<td width="120px" align="center" >深圳市</td>
		<td width="120px" align="center" >深圳市下达单位</td>
	</tr>
	<tr>
		<td align="center">
			<input id="invest_need_total" name="budget/invest_detail/need/total" label="计划新增投资额" type="text" disabled="disabled"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;background:#e6e6e6;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/total" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_need_1" name="budget/invest_detail/need/seft" label="计划新增投资额中的自筹资金" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/seft" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_need_2" name="budget/invest_detail/need/gov_funding" label="计划新增投资额中的国家/省拨款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/gov_funding" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_need_3" name="budget/invest_detail/need/sz_funding" label="计划新增投资额中的深圳市拨款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/sz_funding" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">							
			<input name="budget/invest_detail/need/xddw" label="计划新增投资额中的深圳市拨款下达单位" type="text"
					class="input_text  maxlength:20"  style="width:100px;" maxlength="50" 
					value="<x:out select="$xmlData/data/budget/invest_detail/need/xddw" />" /> 
		</td>
			 
		<td align="center">
			<input id="invest_need_4" name="budget/invest_detail/need/bank_loans" label="计划新增投资额中的银行贷款" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/bank_loans" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>
			 
		<td align="center">
			<input id="invest_need_5" name="budget/invest_detail/need/other_funding" label="计划新增投资额中的其他资金" type="text"
					class="input_text  maxlength:20"  style="text-align:right;width:100px;" maxlength="50" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/budget/invest_detail/need/other_funding" />" 
					onchange="countFundAuto('invest_need_','1,2,3,4,5','total');countFundAuto('invest_','finish_0,need_total','total');" /> 
		</td>	
			 
	</tr>
	
	
</table>

<br>
<div class="t_bar"><span class="color_red">*</span>申请扶持资金类型与金额（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td align="right"  nowrap width="10%"><x:out select="$xmlData/data/proposal/grant_name" />：</td>
		<td width="90%">
			<input id="total_funds" name="proposal/total_funds" label="申请扶持资金类型与金额" type="text"
					class="input_text required"  style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)"
					value="<x:out select="$xmlData/data/proposal/total_funds" />" />
		</td>
	</tr>
</table>

<br>
<div class="t_bar"><span class="color_red">*</span>申请扶持资金使用计划（限500字）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1">
	<tr>
		<td>
			<textarea id="plans" name="budget/invest_detail/support_fund/plan" rows="5" cols="160" class="input_textarea required  maxlength:500 textarea"  label="申请扶持资金使用计划" ><x:out select="$xmlData/data/budget/invest_detail/support_fund/plan" escapeXml="true" /></textarea>
		<input name="budget/invest_detail/support_fund/plan_hidden" value="" type="hidden"/>
		</td>
	</tr>
</table>
